package com.education.admin.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication(scanBasePackages = "com.education")
@MapperScan("com.education.mapper")
public class EducationAdminApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(EducationAdminApiApplication.class, args);
//        ApplicationContext applicationContext = SpringApplication.run(EducationAdminApiApplication.class);
//        TaskManager taskManager = applicationContext.getBean(TaskManager.class);
//        TaskParam taskParam = new TaskParam();
//        taskParam.setData("test");
//        taskParam.setTaskListenerBeanName("logTaskListener");
//        taskManager.pushTask(taskParam);
//        System.err.println(Thread.currentThread().getName());
    }
}
